<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>


<div id="app">
  <cpn></cpn>
  <cpn>
    <slot :data="language">
      <span v-for=""></span>
    </slot>
  </cpn>
</div>
<template id="cpn">
  <div>
    <slot :data="language" >
      <ul>
        <li v-for="item in language">{{item}}</li>
      </ul>
    </slot>
  </div>
</template>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script>
  const app = new Vue({
    el:"#app",
    data:{

    },
    components:{
      cpn:{
        template: '#cpn',
        data(){
          return{
            language:['java','html','c++','python']
          }
        }
      }
    }
  })
</script>
</body>
</html>
